#pragma once
#include "TypeDefine.h"
class Device
{
private:
	float* buffer = nullptr;

public:
	int width = 0;
	int height = 0;
	Device();
	~Device();
	void init(int*argcp, char**argv, int w, int h, const char* title,void(*drawfunc)());
	void run();
	void DrawPixel(int x, int y, float r, float g, float b);
	void ClearBuffer();
	void Flip();
};

